Skip to content

BUG: Holiday observance rules could not be applied #11484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2015

Conversation

rockg
Copy link
Contributor

@rockg rockg commented Oct 30, 2015

Closes #11477
Closes #11533

There were some other bugs here that I added tests for. For example, holiday.dates for MLK day was returning all holidays from the holiday start date up to the end date rather than just between the range.

@jreback jreback added Bug Datetime Datetime data dtype labels Oct 30, 2015
@jreback jreback added this to the 0.17.1 milestone Oct 30, 2015

if self.observance is not None or self.offset is not None:
# NOTE: Arbitrary offset to ensure that any offsets
# or observance rules will get applied
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, maybe have a private method which find the next/previous one?

@rockg
Copy link
Contributor Author

rockg commented Nov 11, 2015

@jreback Changes incorporated. Holiday.dates() does return a DatetimeIndex rather than a list, but I'm thinking that's okay.


.. ipython:: python

from pandas.tseries.offsets import CDay
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you format the same (i think too much indent)

@jreback
Copy link
Contributor

jreback commented Nov 13, 2015

@rockg looks good.

pls rebase / minor edits. ping when green.

@rockg
Copy link
Contributor Author

rockg commented Nov 14, 2015

@jreback Green

jreback added a commit that referenced this pull request Nov 14, 2015
BUG: Holiday observance rules could not be applied
@jreback jreback merged commit 13e45c0 into pandas-dev:master Nov 14, 2015
@jreback
Copy link
Contributor

jreback commented Nov 14, 2015

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants